$(function(){
    $('#title .step .certity').click(function(){
        $(this).css({"background-image":"url(images/loginimgs/step1.png)","color":"#566278"}).siblings('.set').css({"background-image":"url(images/loginimgs/step2_none.png)","color":"#b3b3b3"}).siblings('.success').css({"background-image":"url(images/loginimgs/step3_none.png)","color":"#b3b3b3"});
        $('.certity .active').css('left','0');
        $('#main').css('display','block').siblings('#mainset').css('display','none').siblings('#mainsuccess').css('display','none');

    });
    $('#title .step .set').click(function(){

        $(this).css({"background-image":"url(images/loginimgs/step2.png)","color":"#566278"}).siblings('.certity').css({"background-image":"url(images/loginimgs/step1_none.png)","color":"#b3b3b3"}).siblings('.success').css({"background-image":"url(images/loginimgs/step3_none.png)","color":"#b3b3b3"});
        $('.certity .active').css('left','192'+'px');

        $('#mainset').css('display','block').siblings('#main').css('display','none').siblings('#mainsuccess').css('display','none');

    });
    $('#title .step .success').click(function(){

        $(this).css({"background-image":"url(images/loginimgs/step3.png)","color":"#566278"}).siblings('.certity').css({"background-image":"url(images/loginimgs/step1_none.png)","color":"#b3b3b3"}).siblings('.set').css({"background-image":"url(images/loginimgs/step2_none.png)","color":"#b3b3b3"});
        $('.certity .active').css('left','376'+'px');

        $('#mainsuccess').css('display','block').siblings('#main').css('display','none').siblings('#mainset').css('display','none');

    });

	$('.next button').mouseenter(function(){
		$(this).css("background",'#35c990');
	}).mouseleave(function(){
		$(this).css("background","#ccc");
	});
	$('.nextstep .prev').mouseenter(function(){
        $(this).css("background",'#35c990');
	}).mouseleave(function(){
        $(this).css("background","#ccc");
    });
    $('.nextstep .next').mouseenter(function(){
        $(this).css("background",'#35c990');
    }).mouseleave(function(){
        $(this).css("background","#ccc");
    });

});